import hashlib
# # md = hashlib.md5()#构造一个md5
# # md.update('123456'.encode())
# #
#
# # print(md.hexdigest())#加密后的字符串
# class Encrrypt(object):
#     def md5_passwd(self,str,salt='123456'):
#         #satl是盐值，默认是123456
#         str=str+salt
#         # import hashlib
#         md = hashlib.md5()  # 构造一个md5对象
#         md.update(str.encode())
#         res = md.hexdigest()
#         return res
#
# x=Encrrypt()
# info=x.md5_passwd('147258')
# print(info)




# import math
#
# import random
#
# nums = math.floor(1e5 * random.random())

import random
class Random_Email(object):
    def ran(self):
         L = []
         M = []
    #通过遍历5次，生成五个元素，并插入列表L
         for i in range(5):
                 L.append(random.randint(0,9))
                 if len(L) >= 5:
                         break

    #通过遍历将L的五个元素由数字转为字符串，导入空列表M，并使用join方法合成为字符串
         for d in L:
                 M.append(str(d))
         S = '' .join(M)

         return S

info=Random_Email().ran()
print(info)